﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("1 员工  2 重载  3 重载（2）");
            int a = int.Parse(Console.ReadLine());
            switch (a)
            {
                case 1:
                    Ti Gi = new Ti { ID = 5555, Name = "张三", Bmen = "技术部" };
                    Gi.Wchan();
                    Console.ReadKey();
                    break;
                case 2:
                    Ei Ri = new Ei();
                    int C = Ri.Mian(5,4);
                    Console.WriteLine("长方形的面积为{0}",C);
                    double F = Ri.Mian(5.5);
                    Console.WriteLine("圆的面积为{0}", F);
                    Console.ReadKey();
                    break;
                case 3:
                    Qi Bi = new Qi();
                    Console.WriteLine("请输入要计算的类型：");
                    Console.WriteLine("1 整数相加 2 小数相加 3 字符串相加 4 指定整数的和");
                    int UU = int.Parse(Console.ReadLine());
                    switch (UU)
                    {
                        case 1:
                            int A = Bi.SumUtils(4,4);
                            Console.WriteLine("整数相加和为{0}", A);
                            Console.ReadKey();
                            break;
                        case 2:
                            double G = Bi.SumUtils(3.12,3.12);
                            Console.WriteLine("小数相加和为{0}", G);
                            Console.ReadKey();
                            break;
                        case 3:
                            string R = Bi.SumUtils("eksd","hffjsd");
                            Console.WriteLine("字符串相加和为{0}", R);
                            Console.ReadKey();
                            break;
                        case 4:
                            int W = Bi.SumUtils(1);
                            Console.WriteLine("指定整数的和为{0}", W);
                            Console.ReadKey();
                            break;
                    }
                    break;
            }
            
        }
    }
}
